﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    class Birds: Animal,IFLY,Ieat//鸟
    {
        private string name;
        public Birds(string name) : base(name)
        {
            this.name = name;
        }

        public void eat()
        {
            Console.WriteLine("{0}我能吃",this.name);
        }

        public void fly()
        {
            Console.WriteLine("{0}我能飞", this.name);
        }
    }
}
